import { $t } from "@/plugins/i18n";
const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/login",
    name: "Login",
    redirect: "/",
    meta: {
      title: $t("menus.hslogin"),
      showLink: false,
      rank: 101
    }
  },
  {
    path: "/fullScreen/gas/operation/topology/specificGas/chlorine",
    name: "Pid",
    component: () => import("@/views/gas/operation/pid/tooltip/specificGas/chlorine.vue"),
    meta: {
      title: $t("menus.hsPid"),
      showLink: false,
      rank: 999
    }
  },
  {
    path: "/fullScreen/machine/operation/topology/createReplaceFilter",
    name: "Voc",
    component: () => import("@/views/machine/operation/pid/tooltip/createReplaceFilter/index.vue"),
    meta: {
      title: $t("menus.createFilterOrder"),
      showLink: false,
      rank: 998
    }
  },
  {
    path: "/fullScreen/water/water/topology/controlValue",
    name: "ControlValue",
    component: () => import("@/views/water/water/pid/tooltip/controlValue/index.vue"),
    meta: {
      title: $t("menus.hsPid"),
      showLink: false,
      rank: 997
    }
  },
  {
    path: "/fullScreen/fab/topology/tooltip/specificGas/chlorine",
    name: "Topology",
    component: () => import("@/views/common/fab/topology/tooltip/specificGas/chlorine.vue"),
    meta: {
      title: $t("menus.hsPid"),
      showLink: false,
      rank: 999
    }
  },
  {
    path: "/redirect",
    component: Layout,
    meta: {
      title: $t("status.hsLoad"),
      showLink: false,
      rank: 102
    },
    children: [
      {
        path: "/redirect/:path(.*)",
        name: "Redirect",
        component: () => import("@/layout/redirect.vue")
      }
    ]
  },
  // 下面是一个无layout菜单的例子（一个全屏空白页面），因为这种情况极少发生，所以只需要在前端配置即可（配置路径：src/router/modules/remaining.ts）
  {
    path: "/empty",
    name: "Empty",
    component: () => import("@/views/empty/index.vue"),
    meta: {
      title: $t("menus.hsempty"),
      showLink: false,
      rank: 103
    }
  }
] satisfies Array<RouteConfigsTable>;
